package com.ddone.config;

import org.springframework.cloud.gateway.route.RouteLocator;
import org.springframework.cloud.gateway.route.builder.RouteLocatorBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author ddone
 * @date 2024/4/7-13:22
 */
@Configuration
public class RouteConfig {

    // @Bean
    // public RouteLocator routeLocator(RouteLocatorBuilder builder){
    //     return builder.routes()
    //             .route("stock-route", r->r.path("/stock/**").uri("lb://spring-cloud-stock"))
    //             .route("order-route",r->r.path("/order/**").uri("lb://spring-cloud-order"))
    //             .build();
    // }
}
